#include <iostream>
#include <gtest/gtest.h>

TEST(test, less_than)
{
    int age = 20;
    EXPECT_LT(age, 18);
    printf("ABC\n");
}

TEST(test, greate_than)
{
    int age = 20;
    ASSERT_GT(age, 18);
    printf("ABC\n");
}
/*
    断言宏：只能在单元测试宏函数中使用
    ASSERT_ 断言失败则退出
    EXPECT_ 断言失败继续运行
*/

int main(int argc, char *argv[])
{
    testing::InitGoogleTest(&argc, argv);
    RUN_ALL_TESTS();
    return 0;
}